/*
 * 文件名：ComplaintsInfoServiceImpl.java
 * 描述：
 * 修改人：Administrator
 * 修改时间：2016年4月15日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.zcsy.manage.service.complain.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcsy.manage.model.complain.ComplaintsInfo;
import com.zcsy.manage.persistence.complain.ComplaintsInfoDao;
import com.zcsy.manage.service.complain.IComplaintsInfoService;

/**
 * @Title: ComplaintsInfoServiceImpl.java
 * @Package： com.zcsy.manage.service.property.impl 
 * @Description: 投诉信息服务层实现类
 * @author xujl
 * @Copyright: 2016 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2016年4月14日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
@Service
public class ComplaintsInfoServiceImpl implements IComplaintsInfoService {
    
    @Autowired
    private ComplaintsInfoDao dao;

    /* (non-Javadoc)
     * @see com.zcsy.manage.service.complain.IComplaintsInfoService#insert(com.zcsy.manage.model.complain.ComplaintsInfo)
     */
    @Override
    public int insert(ComplaintsInfo record) {
        return dao.insert(record);
    }

    /* (non-Javadoc)
     * @see com.zcsy.manage.service.complain.IComplaintsInfoService#updateByPrimaryKey(com.zcsy.manage.model.complain.ComplaintsInfo)
     */
    @Override
    public int updateByPrimaryKey(ComplaintsInfo record) {
        return dao.updateByPrimaryKey(record);
    }

    /* (non-Javadoc)
     * @see com.zcsy.manage.service.complain.IComplaintsInfoService#deleteByPrimaryKey(java.lang.String)
     */
    @Override
    public int deleteByPrimaryKey(String id) {
        return dao.deleteByPrimaryKey(id);
    }

    /* (non-Javadoc)
     * @see com.zcsy.manage.service.complain.IComplaintsInfoService#selectByPrimaryKey(java.lang.String)
     */
    @Override
    public ComplaintsInfo selectByPrimaryKey(String id) {
        return dao.selectByPrimaryKey(id);
    }

    /* (non-Javadoc)
     * @see com.zcsy.manage.service.complain.IComplaintsInfoService#selectByKeyword(com.zcsy.manage.model.complain.ComplaintsInfo)
     */
    @Override
    public List<ComplaintsInfo> selectByKeyword(ComplaintsInfo record) {
        return dao.selectByKeyword(record);
    }
    
    @Override
    public List<ComplaintsInfo> getComplainAndAdviceList(String ownerId) {
        return dao.getComplainAndAdviceList(ownerId);
    }

    @Override
    public List<ComplaintsInfo> getAll(String ownerId) {
        return dao.getAll(ownerId);
    }

    @Override
    public List<ComplaintsInfo> getAllPropertySuggestion(String ownerId) {
        return dao.getAllPropertySuggestion(ownerId);
    }
}
